package com.wxxymaker.edu.utils;

import com.blade.Environment;
import com.blade.mvc.WebContext;

/**
 * @AUTHOR soft
 * @DATE 2019/3/7 22:53
 * @DESCRIBE 获取配置的值
 */
public class ConfigKit {

    public static String val(String key) {
        Environment ev = WebContext.blade().environment();
        return ev.get(key, "");
    }

    /**
     * 获取系统临时文件夹
     */
    public static String temp() {
        return System.getProperty("java.io.tmpdir");
    }
}
